
<script src="${rc.getContextPath()}/manage/js/dwzCustomJs/dwz.custom.advancedquery.js?v=${ver}" type="text/javascript"></script>
<link href="${rc.getContextPath()}/manage/css/dwzCustomCss/dwz.custom.css?v=${ver}" rel="stylesheet" type="text/css">
<#include "/common/pagerForm.html">
<form rel="pagerForm"  class="required-validate" method="post" action="" onsubmit="return navTabSearch(this)">
<input type="hidden" id="advancedStatus" name="advancedStatus" value="${condition.advancedStatus!''}" />
	<div class="pageHeader">
		<div class="searchBar">
			<ul class="searchContent">
				<li>
					<label><@label key="personnelCode.C,colon">人员编号：</@label></label> 
					<input class="look" id="personnelLookup.personnelCode" name="personnelCode" type="text" postField="personnelCode" suggestFields="personnelCode,personnelName" value="${condition.personnelCode!''}"
						suggestUrl="${rc.getContextPath()}/manage/personnel/personnelSuggest" lookupGroup="personnelLookup" remote="${rc.getContextPath()}/manage/personnel/validatePersonnel" />
					<a class="btnLook" href="${rc.getContextPath()}/manage/personnel/personnelLookUp?lookupType=radio" rel="personnel_dialog"  title="<@label key='select.C,personnelCode.C'>选择物料</@label>" lookupGroup="personnelLookup" ></a>

				</li>
				<li>
					<label><@label key="workCenter.C,colon">工作中心：</@label></label> 
					<input id="workCenterGrp.workCenterCode" name="workCenterCode" type="text"  suggestFields="workCenterCode,workCenterText" postField="workCenterCode" 
					suggestUrl="${rc.getContextPath()}/manage/workCenter/workCenterSuggest?hr=hr" lookupGroup="workCenterGrp" autocomplete="off"  value="${page.workCenterCode!''}"/>
				</li>
				<li>
					<label><@label key='materialCode.C,colon'>物料编号：</@label></label>
					<input class="look" id="materialLookup.materialCode" name="materialCode" type="text" postField="materialCode" suggestFields="materialCode,materialText" value="${condition.materialCode!''}"
					suggestUrl="${rc.getContextPath()}/manage/material/componentSuggest" lookupGroup="materialLookup" remote="${rc.getContextPath()}/manage/material/validateMaterial" warn="<@label key='materialCodeNotExists.M'>物料编号不存在</@label>"/>
					<a class="btnLook" href="${rc.getContextPath()}/manage/material/componentLookUp?lookupType=radio" rel="materialLookup_dialog" title="<@label key='select.C,materialCode.C'>选择物料</@label>"  lookupGroup="materialLookup" ></a>
				</li>
			</ul>
			<ul class="searchContent">
				<li><label><@label key='confirmTime.C,colon'>报工时间：</@label></label>
					<input type="text" dateFmt="yyyy-MM-dd HH:mm:ss" class="date"   name="minTheDatetime" readonly max_date="{minTheDatetime}" value="${condition.minTheDatetime!''}"/>
					<a class="inputDateButton" href="javascript:;">选择</a>
				</li>
				<li><label><@label key="to.C,colon">至：</@label></label>
					<input type="text" class="date" dateFmt="yyyy-MM-dd HH:mm:ss"  name="maxTheDatetime" readonly min_date="{maxTheDatetime}" value="${condition.maxTheDatetime!''}"/><a class="inputDateButton" href="javascript:;">选择</a>
				</li>
				<li class="query">
					<div class="buttonActive">
						<div class="buttonContent">
							<button type="submit"><@label key="query.B">查询</@label></button>
						</div>
					</div>
				</li>
				<li class="advancedQuery" >			
					<a id="advancedQuery"href="javascript:void(0);"   onclick="openAdvanced(navTab.getCurrentPanel())">
						<@label key="advancedQuery.C">高级查询</@label>
					</a>
					<span  onclick="openAdvanced(navTab.getCurrentPanel());"></span>			
				</li>
			</ul>
		</div>
	</div>
	<div id="collapsablePanel" style="display:none;" class="pageHeader" >
		<div class="searchBar">
			<ul class="searchContent">
				<li >
					<label><@label key='shiftingWorkCenter.C,colon'>实际工作中心：</@label></label> 
					<input id="shiftingWorkCenterGrp.workCenterCode" name="shiftingWorkCenterCode" type="text"  suggestFields="workCenterCode,workCenterText" postField="workCenterCode" 
					suggestUrl="${rc.getContextPath()}/manage/workCenter/workCenterSuggest" lookupGroup="shiftingWorkCenterGrp" autocomplete="off"  value="${condition.shiftingWorkCenterCode!''}"/>		
				</li>
				<li>
					<label><@label key='personnelName.C,colon'>人员姓名：</@label></label>
					<input type="text" name="personnelName" value="${condition.personnelName!''}"/>
				</li>
				<li>
					<label><@label key='memo.C,colon'>备注：</@label></label>
					<input type="text" name="memo" value="${condition.memo!''}"/>
				</li>
			</ul>
		</div>
	</div>	
</form>
<div class="pageContent">

	<div class="panelBar">
		<ul class="toolBar">
			<@buttonRight menuCode="PERSONNELCONFIRM_ADD" labelKey="personnelConfirm.B" defalutName="报工">
			<li><a class="add"  mask="true" width="750" height="500" href="${rc.getContextPath()}/manage/personnelConfirm/personnelConfirm_add?navTabId=${navTabId!''}" target="dialog" title="<@label key='personnelConfirm.B'>报工</@label>"><span><@label key='personnelConfirm.B'>报工</@label></span></a></li>
			</@buttonRight>
			<@buttonRight menuCode="PERSONNELCONFIRM_BATCHADD" labelKey="personnelConfirmbatch.B" defalutName="批量报工">
			<li><a class="add"  mask="true" width="650" height="500" href="${rc.getContextPath()}/manage/personnelConfirm/personnelConfirm_batchadd?navTabId=${navTabId!''}" target="dialog" title="<@label key='personnelConfirmbatch.B'>批量报工</@label>"><span><@label key='personnelConfirmbatch.B'>批量报工</@label></span></a></li>
			</@buttonRight>
			<@buttonRight menuCode="MODIFYPERSONNELCONFIRM" labelKey="edit.B" defalutName="修改">
			<li><a class="edit" mask="true" width="650" height="300" href="${rc.getContextPath()}/manage/personnelConfirm/modifyPersonnelConfirm?id={PersonnelConfirm_id}&navTabId=${navTabId!''}" target="dialog" title="<@label key='edit.B'>修改</@label>"><span><@label key='edit.B'>修改</@label></span></a></li>
			</@buttonRight>
			<@buttonRight menuCode="PERSONNELCONFIRM_VIEW" labelKey="view.B" defalutName="详情">
			<li><a class="edit" mask="true" width="650" height="300" href="${rc.getContextPath()}/manage/personnelConfirm/viewPersonnelConfirm?id={PersonnelConfirm_id}&navTabId=${navTabId!''}" target="dialog" title="<@label key='view.B'>详情</@label>"><span><@label key="view.B">详情</@label></span></a></li>
			</@buttonRight>
			<@buttonRight menuCode="PERSONNELCONFIRM_DELETE" labelKey="delete.B" defalutName="删除">
            <li><a class="delete" target="selectedTodo" href="${rc.getContextPath()}/manage/personnelConfirm/deletepersonnelConfirm?navTabId=${navTabId!''}" postType="string" rel="ids" callback="batchjobAjaxDone"
                title="<@label key='confirmDelPersonnelConfirm.M'>确认要删除选择的报工吗？</@label>"><span><@label key="delete.B">删除</@label></span>
                </a>
            </li>
            </@buttonRight>
		</ul>
	</div>
	<table class="table" width="100%" layoutH="160">
        <thead>
            <tr>
                <th width="22"><input type="checkbox" group="ids" class="checkboxCtrl">
                </th>
                <th width="22"><@label key="serialNumber.C">序号</@label></th>
                <th width="50" orderField="personnelCode"<#if (page.orderField?? && page.orderField == 'personnelCode')>class="${page.orderDirection!''}"</#if>><@label key="personnelCode.C">人员编号</@label></th>
                <th width="50" orderField="personnelName"<#if (page.orderField?? && page.orderField == 'personnelName')>class="${page.orderDirection!''}"</#if>><@label key="personnelName.C">姓名</@label></th>
                <th width="50" orderField="quantity"<#if (page.orderField?? && page.orderField == 'quantity')>class="${page.orderDirection!''}"</#if>><@label key='quantity.C'>数量</@label></th>
                <th width="120" orderField="confirmDatetime"<#if (page.orderField?? && page.orderField == 'confirmDatetime')>class="${page.orderDirection!''}"</#if>><@label key='confirmTime.C'>报工时间</@label></th>
                <th width="100" orderField="materialCode"<#if (page.orderField?? && page.orderField == 'materialCode')>class="${page.orderDirection!''}"</#if>><@label key='materialCode.C'>物料编号</@label></th>
                <th width="100" orderField="materialText"<#if (page.orderField?? && page.orderField == 'materialText')>class="${page.orderDirection!''}"</#if>><@label key='materialText.C'>物料描述</@label></th>
                <th width="100" orderField="workCentertext"<#if (page.orderField?? && page.orderField == 'workCentertext')>class="${page.orderDirection!''}"</#if>><@label key="workCenter.C">工作中心</@label></th>
                <th width="100" orderField="shiftingWorkcenterText"<#if (page.orderField?? && page.orderField == 'shiftingWorkcenterText')>class="${page.orderDirection!''}"</#if>><@label key="shiftingWorkCenter.C">实际工作中心</@label></th>
                <th width="100" orderField="memo"<#if (page.orderField?? && page.orderField == 'memo')>class="${page.orderDirection!''}"</#if>><@label key="memo.C">备注</@label></th>
            </tr>
        </thead>
		<tbody>
		<#if page??><#if (page.data?size>0)> <#list page.data as PersonnelConfirm>
			<tr target="PersonnelConfirm_id" rel="${PersonnelConfirm.id!''}">
				<td><input name="ids" value="${PersonnelConfirm.id!''}" type="checkbox"></td>
				<td>${page.startRow + PersonnelConfirm_index}</td>
				<td>${PersonnelConfirm.personnelCode!''}</td>
				<td>${PersonnelConfirm.personnelName!''}</td>
				<td>${PersonnelConfirm.quantity!''}</td>
				<td>${(PersonnelConfirm.confirmDatetime?string("yyyy-MM-dd HH:mm:ss"))?if_exists}</td>
				<td>${PersonnelConfirm.materialCode!''}</td>
				<td>${PersonnelConfirm.materialText!''}</td>
				<td>${PersonnelConfirm.workCentertext!''}</td>
				<td>${PersonnelConfirm.shiftingWorkcenterText!''}</td>
				<td>${PersonnelConfirm.memo!''}</td>
			</tr>
		</#list>
		<#else>
		<tr target="PersonnelConfirm_id">
			<td colspan="14" class="noData">======<@label key='noListData.C'>列表无数据</@label>=====</font></td>
		</tr>
		</#if>
		<#else>
		<tr target="PersonnelConfirm_id">
			<td colspan="14" class="noData">======<@label key='noListData.C'>列表无数据</@label>=====</font></td>
		</tr>
		</#if>
		</tbody>
	</table>
	<#include "/common/panelBar.html">
</div>
<script type="text/javascript">
$(function() {
    initAdvancedQuery(navTab.getCurrentPanel());
});
</script>